﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace WorkTime.Logical
{
    /// <summary>
    /// 工时卡验证器
    /// </summary>
    interface IWorkTimeCardValidator
    {
        /// <summary>
        /// 验证工时卡是否符合业务规则
        /// </summary>
        /// <param name="context"></param>
        /// <param name="attachmentFileName">附件名称</param>
        /// <param name="timecard">转化成<see cref="XDocument"/>的工时卡</param>
        /// <returns></returns>
        List<string> Validate(TimeCardContext context, string attachmentFileName , XDocument timecard);
    }
}
